package com.pet.server.ext.action.home;

import com.pet.server.ext.ActionBase;
import com.pet.server.ext.ApiError;
import com.pet.server.ext.Result;
import com.pet.server.ext.util.NumberUtil;
import com.pet.server.ext.util.Parameters;

public class Detail extends ActionBase{

	private Integer id;

	public Detail(){
		 needCheckAuth =false;
	}
	
	@Override
	public void initParameters(Parameters params) throws ApiError {	
		id=NumberUtil.getInteger(params.getFieldValue("id"));
	}
	
	@Override
	public Result invokeService() throws ApiError {
		Result result = new Result();
		result.setAttr("id", id);
		result.setRedirect("../cactus/detail.jsp", "forward");//
	    return result;
	}
}
